package com.hunt.service.app.impl;

public class ParseStockCodeUtil {

    public static String parseStockCode(String code) {
        if (code.equals("1A0001"))
            return "000001.sh";
        else if (code.equals("1A0002"))
            return "000002.sh";
        else if (code.equals("1A0003"))
            return "000003.sh";
        else if (code.equals("1B0001"))
            return "000004.sh";
        else if (code.equals("1B0002"))
            return "000005.sh";
        else if (code.equals("1B0004"))
            return "000006.sh";
        else if (code.equals("1B0005"))
            return "000007.sh";
        else if (code.equals("1B0006"))
            return "000008.sh";
        else if (code.equals("1B0007"))
            return "000010.sh";
        else if (code.equals("1B0008"))
            return "000011.sh";
        else if (code.equals("2A01"))
            return "399001.sz";
        else if (code.equals("2A02"))
            return "399002.sz";
        else if (code.equals("2A03"))
            return "399003.sz";
        else if (code.equals("2C01"))
            return "399106.sz";
        else if (code.equals("2C02"))
            return "399107.sz";
        else if (code.equals("2C03"))
            return "399108.sz";
        else if (code.startsWith("1B")){
            return code.replace("1B","00")+ ".sh";
        }else if (code.startsWith("6") || code.startsWith("99") || code.startsWith("90")){
            return code + ".sh";
        }else if (code.startsWith("88")){
            return code + ".ti";
        }else if (code.startsWith("80")){
            return code + ".sl";
        }else{
            return code + ".sz";
        }
    }
}
